<%--
  Created by IntelliJ IDEA.
  User: 范军建
  Date: 2022/3/28
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String[] arr = {"篮球","足球","排球","乒乓球","网球","羽毛球"};
    String[] arr1 ={"1.jpg"};
    request.setCharacterEncoding("utf-8");
    response.setCharacterEncoding("utf-8");
    String user= request.getParameter("user");
    String pass= request.getParameter("pass");
    if (user.equals("admin")&&pass.equals("1234")){
        request.setAttribute("succ",arr);
        request.setAttribute("succ1",arr1);
        request.getRequestDispatcher("shouye.jsp").forward(request,response);
    }else {
        request.setAttribute("num1","登录失败");

        request.getRequestDispatcher("file.jsp").forward(request,response);

    }



%>
</body>
</html>
